package com.kma.summer2012.client.events.request;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class MainPageEvent extends GwtEvent<MainPageEvent.MainPageEventHandler> {
    private static Type<MainPageEventHandler> TYPE = new Type<MainPageEventHandler>();

    @Override
    public Type<MainPageEventHandler> getAssociatedType() {
        return TYPE;
    }


    @Override
    protected void dispatch(MainPageEventHandler cancelEventHandler) {
        cancelEventHandler.onMainPage(this);
    }

    public static Type<MainPageEventHandler> getType() {
        return TYPE;
    }

    public interface MainPageEventHandler extends EventHandler {
        void onMainPage(MainPageEvent event);
    }

}